home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / FinderMenu ƒ / <FinderMenu> / FinderMenuInterface.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-10  |  1012 b   |  44 lines  |  [TEXT/KAHL]

  1. #pragma once
  2.  
  3. /*
  4.  * (C) 1992 SixxHeads Software
  5.  * (C) 1992 Berkeley Systems
  6.  * All Rights Reserved
  7.  *
  8.  * The Gestalt codes and interfaces for the FinderMenu extension.
  9.  *
  10.  * This extension provides a method of inserting menus into the
  11.  * Finder's menubar, as well as retrieving the Finders selection.
  12.  *
  13.  * System 7 Only.
  14.  
  15.  * This code is freely distributable, but credit must be given in any
  16.  * derivative work.
  17.  * 
  18.  * <Revision History>
  19.  *        04/28/92 smz Created.
  20.  */
  21.  
  22. #define cFinderCancelHitEvent    'fmch'
  23. #define cFinderMenuHitEvent        'fmhe'
  24. #define cGetFinderMenuProc        'fmci'
  25.  
  26. enum {
  27.     eOutOfMemoryError = -3,
  28.     eInitNotInstalled = -2,
  29.     eIDAlreadyInstalled = -1
  30. };
  31.  
  32. // of your application
  33. extern OSType theCreatorID;
  34.  
  35. short FMInit(void);
  36. Boolean FMAppend(MenuHandle hm, short beforeID);
  37. MenuHandle FMDeleteMenus(void);
  38. Boolean FMRemove(void);
  39. Boolean FMFreshMenuBar(void);
  40. Boolean FMRollBeachball(void);
  41. Boolean FMFinishedProcessing(void);    // when you are done processing things
  42.  
  43. #include "FinderMenuPrivate.h"
  44.